package cn.edu.usst.cs.goldfish.booking.meetingroom.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.builders.ApiInfoBuilder;
import springfox.documentation.service.ApiInfo;
import springfox.documentation.spring.web.plugins.Docket;
@Configuration
public class SwaggerConfig {
    @Bean
    ApiInfo apiInfo() {
        return new ApiInfoBuilder()
                .title("会议室预约系统API")
                .description("会议室预约系统API文档")
                .version("1.0")
                .build();
    }
    @Bean
    public Docket apiDocket() {
        return new Docket(springfox.documentation.spi.DocumentationType.SWAGGER_2)
               .apiInfo(apiInfo());
    }
}
